/**
 * 用户模块的通信消息类型，父页面与iframe页面保持一致
 */

interface IUserInfo{
	id?:string,
	name?:string,
	outfit?:Array<string>
};

const OUTFIT_TYPE = {
	CHARACTER: 'character',
	HEAD: 'head',
	CHEST: 'chest',
	LEG: 'leg',
	FOOT: 'foot',
	IDLE:'idle',
	WALK:'walk',
	ORNAMENT:'ornament',
	RUN:'run',
	JUMP:'jump'
};

enum USER_HUB_MESSAGE_TYPE {
	SETUP = 'setup',
	SWITCH = 'switch',
	SELECT = 'select',
	IFRAME_READY = 'iframeReady',
	SWITCH_CHARACTER = 'switchCharacter',
}

interface ISetupInfo {
	outfitRoomUrl ?: string,
	characterUrl ?: string,
	idleUrl ?: string,
	walkUrl ?: string,
	headUrl ?: string,
	chestUrl ?: string,
	legUrl ?: string,
	footUrl ?: string,
	ornamentUrl ?: string,
	runUrl?:string,
	jumpUrl?:string,
}

export {
	USER_HUB_MESSAGE_TYPE,
	OUTFIT_TYPE,
};
export type {
	ISetupInfo,
	IUserInfo
};